package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;

import java.util.List;
import java.util.Properties;
import java.util.Set;

public class BookServiceImpl implements BookService {

    private Integer num;
    private String name;
    private String[] arr;
    /*private List list;
    private Set set;
    private Properties props;*/

    private BookDao bookDao;

    /*public BookServiceImpl(Integer num, String name, String[] arr, List list, Set set, Properties props, BookDao bookDao) {
        this.num = num;
        this.name = name;
        this.arr = arr;
        this.list = list;
        this.set = set;
        this.props = props;
        this.bookDao = bookDao;
    }*/

    public BookServiceImpl(Integer num, String name, String[] arr, BookDao bookDao) {
        this.num = num;
        this.name = name;
        this.arr = arr;
        this.bookDao = bookDao;
    }

    @Override
    public void run() {
        System.out.println("BookServiceImpl is run ..."+num+", "+name+", "+arr[1]);
        bookDao.run();
    }
}
